package d0330;

public class AnimalTest{

    public static void main(String[] args) {
        Animal a =new Animal();
        Animal.InnerDog id=a.new InnerDog();
        id.setBark();

    }
}


class Animal{
    String name;
    int age;
    String color;

    public Animal(String name,int age,String color){
        this.name=name;
        this.age=age;
        this.color=color;
    }

    public Animal() {

    }
    class InnerDog{
        String bark;

        public void setBark(){
            System.out.println("wangwangwang~");
        }
        public void show(){
            System.out.println(name);
        }
    }

}


